package com.yuyou.fn.common.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.common.entity.Sms;
import com.yuyou.fn.common.vo.SmsQueryVo;

import java.util.List;

/**
 * Sms 表数据服务层接口
 */
public interface ISmsService extends ISuperService<Sms, Long> {


    boolean sendCode(String phoneNo);

    boolean validate(String phoneNo, String code);

    boolean send(List<String> phoneNoList, String msg) throws Exception;

    List<Sms> findSmsCodeList(SmsQueryVo smsQueryVo);

    Page<Sms> findSmsCodePage(SmsQueryVo smsQueryVo,int pageNo,int pageSize);
}